#!/bin/sh
echo 本命令后面的参数将附加到 -tags 后面。
if [ -z "$@" ];then
	echo '~/go/bin/qtminimal desktop'
	~/go/bin/qtminimal desktop
	echo 'go build -tags "minimal" -ldflags "-s -w"'
	go build -tags "minimal" -ldflags "-s -w"
else
	tags="$@"
	echo "~/go/bin/qtminimal -tags \"${tags}\" desktop"
	~/go/bin/qtminimal -tags "${tags}" desktop
	echo "go build -tags \"minimal ${tags}\" -ldflags \"-s -w\""
	go build -tags "minimal ${tags}" -ldflags "-s -w"
fi
